package _1023.emp;

import java.sql.SQLException;
import java.util.List;

public interface EmpDao {
	boolean insert(Emp emp) throws SQLException;
	boolean update(Emp emp) throws SQLException;
	boolean delete(int empno) throws SQLException;
	
	Emp selectById(int empno) throws SQLException;
	List<Emp> selectByName(String name) throws SQLException;
	List<Emp> selectByPage(int page,int pageSize) throws SQLException;
	List<Emp> selectAll() throws SQLException;
}
